efa policy extcommunity-list update

Update extcommunity-list.

Syntax

efa policy extcommunity-list update [ --name string | --type { standard | extended } | --rule stringArray | --operation string | --ip string ]

Parameters

--name string
The name of the extended community list.
--type { standard | extended }
The type of extended community list. Valid options are standard, extended.
--rule stringArray
Rule in format seq[seq-num], action[permit/deny], rt[ASN:NN | IpAddress:NN, ASN and NN is 2 or 4 bytes], soo[ASN:NN|IpAddress:NN, ASN and NN is 2 or 4 bytes] OR seq[num], action[permit/deny], ext-value[regular expression].
--operation string
Valid options are update-rule, add-device, remove-device.
--ip string
Specifies comma-separated range of device IP addresses. Example: 10.1.1.13,10.1.1.50,10.1.1.101.

Examples

This example configures an extcommunity-list on the specified devices.

efa policy extcommunity-list update --name excommlist-1 --type standard
--operation add-device --ip 10.20.246.29,10.20.246.30  
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| Extended community list name | Seq num | Action |  Rt   |     Soo      | Ext Value | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 4       | permit |       | 10.11.2.3:22 |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 5       | deny   | 1:345 |              |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
| excommlist-1                 | 6       | permit | 1:45  | 10.11.2.3:22 |           | 
                
+------------------------------+---------+--------+-------+--------------+-----------+ 
                
Extended community list details 
                
+--------------+---------+--------+-----------------+ 
                
|  IP Address  | Result  | Reason | Rollback reason | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.29 | Rollback|        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.30 | Rollback|        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
Device Results

This example removes the extcommunity-list from the specified devices.

efa policy extcommunity-list update --name excommlist-2 --type extended
--operation remove-device --ip 10.20.246.29,10.20.246.30 
+------------------------------+---------+--------+----+-----+-----------+ 
                
| Extended community list name | Seq num | Action | Rt | Soo | Ext Value | 
                
+------------------------------+---------+--------+----+-----+-----------+ 
                
| excommlist-2                 | 2       | permit |    |     | _15000_   | 
                
+------------------------------+---------+--------+----+-----+-----------+ 
                
 excommlist-2                 | 5       | deny   |    |     | _25000_   | 
                
+------------------------------+---------+--------+----+-----+-----------+ 
                
Extended community list details 
                
+--------------+---------+--------+-----------------+ 
                
|  IP Address  | Result  | Reason | Rollback reason | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.29 | Rollback|        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
| 10.20.246.30 | Rollback|        |                 | 
                
+--------------+---------+--------+-----------------+ 
                
Device Results  

This example update rules on an extcommunity-list.

efa policy extcommunity-list update –-name excommlist-2 –-type extended –-operation update-rule –-rule "seq[5],action[deny],ext-value[_25000_]"
+------------------------------+---------+--------+----+-----+-----------+
| Extended community list name | Seq num | Action | Rt | Soo | Ext Value |
+------------------------------+---------+--------+----+-----+-----------+
| excommlist-2                 | 5       | deny   |    |     | _25000_   |
+------------------------------+---------+--------+----+-----+-----------+
Extended community list details
+--------------+---------+--------+-----------------+
|  IP Address  | Result  | Reason | Rollback reason |
+--------------+---------+--------+-----------------+
| 10.20.246.29 | Success |        |                 |
+--------------+---------+--------+-----------------+
| 10.20.246.30 | Success |        |                 |
+--------------+---------+--------+-----------------+
Device Results